package com.codeyang;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 描述: 商品服务
 *
 * @author CodeYang_Site
 * @version 2021/5/25 0:29
 */
@SpringBootApplication
@EnableEurekaClient
@EnableCaching //开启注解缓存 集成了redis 就把属性改为了redis
@EnableScheduling // 开启定时任务
@EnableFeignClients
public class ProductServiceApp {

    public static void main(String[] args) {
        SpringApplication.run(ProductServiceApp.class, args);
    }
}
